#!/bin/bash
demofun(){
    echo "这是shell中一个函数"
    path=~/Downloads
    for file in $(ls $path | grep "zip")
    do
        echo $file
    done
}

echo "shell脚本执行开始"
demofun
echo "shell脚本执行结束"